Fix compat with the current rust master
authorAlex Crichton <alex@alexcrichton.com>
Wed, 29 Oct 2014 18:47:44 +0000 (11:47 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 29 Oct 2014 18:47:44 +0000 (11:47 -0700)
src/cargo/core/package_id.rs
src/cargo/core/source.rs

index fffb9be84e748ddf33d8e3a595ec5454bd16003d..01b2daa1e6634cc3d0be0b8b3cc3a65b3245da18 100644 (file)
@@ -62,18 +62,18 @@ impl<S: hash::Writer> Hash<S> for PackageId {
 
 impl PartialEq for PackageId {
     fn eq(&self, other: &PackageId) -> bool {
-        self.inner.eq(&*other.inner)
+        (*self.inner).eq(&*other.inner)
     }
 }
 impl PartialOrd for PackageId {
     fn partial_cmp(&self, other: &PackageId) -> Option<Ordering> {
-        self.inner.partial_cmp(&*other.inner)
+        (*self.inner).partial_cmp(&*other.inner)
     }
 }
 impl Eq for PackageId {}
 impl Ord for PackageId {
     fn cmp(&self, other: &PackageId) -> Ordering {
-        self.inner.cmp(&*other.inner)
+        (*self.inner).cmp(&*other.inner)
     }
 }
 
index 9d3edf68ad5e84a8ee5cf95f4b7b347b231449ba..cde5523d8640c8712f6e17d7d158240f435173bd 100644 (file)
@@ -225,7 +225,7 @@ impl SourceId {
 
 impl PartialEq for SourceId {
     fn eq(&self, other: &SourceId) -> bool {
-        self.inner.eq(&*other.inner)
+        (*self.inner).eq(&*other.inner)
     }
 }